<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>浮动定位</title>
        <style>
            div {
                float: left;
            }
            #id1 {
                width: 100%;
                height: 100px;
                background-color: rgb(22, 22, 109);
            }
            #id2 {
                width: 100%;
                height: 60px;
                background-color: black;
            }
            #id3 {
                width: 25%;
                height: 600px;
                background-color: cornflowerblue;
            }
            #id4 {
                width: 50%;
                height: 600px;
                background-color: skyblue;
            }
            #id5 {
                width: 25%;
                height: 600px;
                background-color: cornflowerblue;
            }
            #id6 {
                width: 100%;
                height: 50px;
                background-color: rgb(5, 5, 198);
            }
        </style>
    </head>
    <body>
        <div id="id1"></div>
        <div id="id2"></div>
        <div id="id3"></div>
        <div id="id4"></div>
        <div id="id5"></div>
        <div id="id6"></div>
    </body>
</html>
